home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: getting Unix's current running process id
- Date: 25 Mar 1996 18:03:27 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4j7c8f$bt5@solutions.solon.com>
- References: <UlJ5MNm00YUwM=wGwV@andrew.cmu.edu> <3156E48D.3A23@oc.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <3156E48D.3A23@oc.com>, Larry Weiss <lfw@oc.com> wrote:
- >C allows but does not require the existance of a function named getpid() to be
- >supplied with your implementation.
-
- Actually, as far as I can tell, it's not allowed; or at least, it's not
- allowed if it causes problems if/when you define or use your own function
- named getpid.
-
- If you include <unistd.h>, you are no longer writing C, but are writing
- C-with-POSIX-extensions, a language which requires the implementation
- to provide a function called getpid().
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-